package com.qin.malldiscount.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qin.malldiscount.domain.CmsPrefrenceArea;
import com.qin.malldiscount.service.CmsPrefrenceAreaService;
import com.qin.malldiscount.mapper.CmsPrefrenceAreaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品优选管理Service实现类
* @author 覃剑
* @description 针对表【cms_prefrence_area(优选专区)】的数据库操作Service实现
* @createDate 2022-11-22 15:39:36
*/
@Service
public class CmsPrefrenceAreaServiceImpl extends ServiceImpl<CmsPrefrenceAreaMapper, CmsPrefrenceArea>
    implements CmsPrefrenceAreaService{
    
    @Autowired
    private CmsPrefrenceAreaMapper prefrenceAreaMapper;

    /**
     * 获取所有优选专区
     */
    @Override
    public List<CmsPrefrenceArea> listAll() {
        QueryWrapper<CmsPrefrenceArea> wraper = new QueryWrapper<>();
        List<CmsPrefrenceArea> cmsPrefrenceAreas = prefrenceAreaMapper.selectList(null);
        return cmsPrefrenceAreas;
    }
}




